const mapToArrFunc = (map) => {
	const arr = []
	for (let key in map) {
		arr.push({
			id: key,
			name: map[key]
		})
	}
	return arr;
}

const isDegreeMap = {
	1: '是',
	0: '否'
}
const isDegreeArr = mapToArrFunc(isDegreeMap)
const isDiplomaMap = {
	1: '是',
	0: '否'
}
const isDiplomaArr = mapToArrFunc(isDiplomaMap)
const genderMap = {
	1: '男',
	2: '女'
}
const genderArr = mapToArrFunc(genderMap)
const bodyTypeMap = {
	1: '苗条',
	2: '匀称',
	3: '健硕',
	4: '微胖'
}
const bodyTypeArr = mapToArrFunc(bodyTypeMap)
const highestEducationMap = {
	1: '博士',
	2: '研究生',
	3: '本科',
	4: '专科',
	5: '高中',
	6: '初中',
	7: '其他'
}
const highestEducationArr = mapToArrFunc(highestEducationMap)
const incomeRangeMap = {
	1: '5万以下',
	2: '5-10万',
	3: '10-20万',
	4: '20-30万',
	5: '30-50万',
	6: '50万以上'
}
const incomeRangeArr = mapToArrFunc(incomeRangeMap)
const housingSituationMap = {
	1: '租房',
	2: '有房'
}
const housingSituationArr = mapToArrFunc(housingSituationMap)
const carOwnershipMap = {
	1: '有车',
	2: '无车'
}
const carOwnershipArr = mapToArrFunc(carOwnershipMap)
const relationshipProgressExpectationMap = {
	1: '2年内结婚',
	2: '时机成熟就结婚',
	3: '单纯恋爱'
}
const relationshipProgressExpectationArr = mapToArrFunc(relationshipProgressExpectationMap)
const educationThresholdMap = {
	1: '博士',
	2: '研究生',
	3: '本科',
	4: '专科',
	5: '高中',
	6: '初中',
	7: '其他'
}
const educationThresholdArr = mapToArrFunc(educationThresholdMap)

const provinceCodesMap = {
	'110000': '北京市',
	'120000': '天津市',
	'130000': '河北省',
	'140000': '山西省',
	'150000': '内蒙古自治区',
	'210000': '辽宁省',
	'220000': '吉林省',
	'230000': '黑龙江省',
	'310000': '上海市',
	'320000': '江苏省',
	'330000': '浙江省',
	'340000': '安徽省',
	'350000': '福建省',
	'360000': '江西省',
	'370000': '山东省',
	'410000': '河南省',
	'420000': '湖北省',
	'430000': '湖南省',
	'440000': '广东省',
	'450000': '广西壮族自治区',
	'460000': '海南省',
	'500000': '重庆市',
	'510000': '四川省',
	'520000': '贵州省',
	'530000': '云南省',
	'540000': '西藏自治区',
	'610000': '陕西省',
	'620000': '甘肃省',
	'630000': '青海省',
	'640000': '宁夏回族自治区',
	'650000': '新疆维吾尔自治区',
	'710000': '台湾省',
	'810000': '香港特别行政区',
	'820000': '澳门特别行政区'
};
const provinceCodesArr = mapToArrFunc(provinceCodesMap)

export default {
	isDegreeMap,
	isDegreeArr,
	isDiplomaMap,
	isDiplomaArr,
	genderMap,
	genderArr,
	bodyTypeMap,
	bodyTypeArr,
	highestEducationMap,
	highestEducationArr,
	incomeRangeMap,
	incomeRangeArr,
	housingSituationMap,
	housingSituationArr,
	carOwnershipMap,
	carOwnershipArr,
	relationshipProgressExpectationMap,
	relationshipProgressExpectationArr,
	educationThresholdMap,
	educationThresholdArr,
	provinceCodesArr,
	provinceCodesMap
}